package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
public class Leaderboard extends Model<Leaderboard> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "leaderboard_id", type = IdType.AUTO)
    private Integer leaderboardId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 总时长
     */
    @TableField("total_time")
    private Integer totalTime;

    /**
     * 总里程
     */
    @TableField("total_mileage")
    private Integer totalMileage;

    /**
     * 排名
     */
    private Integer rank;

    /**
     * 头像
     * @return
     */
    private String headImage;
    /**
     * 核销状态
     */
    @TableField("write_off_status")
    private Integer writeOffStatus;



    @Override
    protected Serializable pkVal() {
        return this.leaderboardId;
    }

}
